/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.gzchengguo.cn

 */
package link.chengguo.orangemall.modules.wechat.service;

import link.chengguo.orangemall.common.service.BaseService;

import link.chengguo.orangemall.modules.wechat.domain.OrangeWechatReply;
import link.chengguo.orangemall.modules.wechat.service.dto.OrangeWechatReplyDto;
import link.chengguo.orangemall.modules.wechat.service.dto.OrangeWechatReplyQueryCriteria;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
* @author chengguo
* @date 2020-05-12
*/
public interface OrangeWechatReplyService extends BaseService<OrangeWechatReply> {

/**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(OrangeWechatReplyQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<OrangeWechatReplyDto>
    */
    List<OrangeWechatReply> queryAll(OrangeWechatReplyQueryCriteria criteria);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<OrangeWechatReplyDto> all, HttpServletResponse response) throws IOException;

    OrangeWechatReply isExist(String subscribe);

    void create(OrangeWechatReply orangeWechatReply);

    void upDate(OrangeWechatReply orangeWechatReply);
}
